import rely from '../../oauth2rely'

export default (store) => ({
  path : 'auth',
  onEnter(n, r) {
    rely.redirectToAuthUrl();
  },
  getComponent (nextState, cb) {
    require.ensure([], (require) => {
      const Component = require('./component').default;
      cb(null, Component)
    })
  }
})